package com.hospital.hospitalsystem.modules.doctor.service;

import com.hospital.hospitalsystem.modules.doctor.dao.entity.DoctorIntroduceEntity;
import com.hospital.hospitalsystem.modules.doctor.dao.mapper.DoctorIntroduceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/3/16
 */
@Component
public class DoctorIntroduceService {

    @Autowired
    private DoctorIntroduceMapper doctorIntroduceMapper;

    public void insertSelective(DoctorIntroduceEntity doctorIntroduceEntity) {
        doctorIntroduceMapper.insertSelective(doctorIntroduceEntity);
    }

    public List<DoctorIntroduceEntity> selectByExample(Example example){
        return doctorIntroduceMapper.selectByExample(example);
    }

    public void updateByPrimaryKeySelective(DoctorIntroduceEntity doctorIntroduceEntity) {
        doctorIntroduceMapper.updateByPrimaryKeySelective(doctorIntroduceEntity);
    }

    public void updateByExampleSelective(DoctorIntroduceEntity doctorIntroduceEntity,Example example){
        doctorIntroduceMapper.updateByExampleSelective(doctorIntroduceEntity,example);
    }
}
